<template>
    <el-menu-item index="item.id"  route="item.type === 1?item.url">
        <i :class="item.icon"></i>
        <span>{{item.name}}</span>
        <el-menu-item v-if="item.type===0" v-for="items in item.list" :key = "items.id" route="item.type === 1?item.url"> </el-menu-item>
    </el-menu-item>
</template>

<script>
 export default {
    name:"elMenuItem",
    props:{item:{}},
 }

</script>

<style>
</style>
